package work.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import work.entity.Information;
import work.repository.InformationRepository;
import work.service.InformationService;

import java.util.List;

@Service
public class InformationServiceImpl implements InformationService {

    @Autowired
    private InformationRepository informationRepository;

    @Override
    public List<Information> findInformation(String userId) {
        return informationRepository.findInformation(userId);
    }

    @Override
    public int insertInformation(Information information) {
        return informationRepository.insertInformation(information);
    }
}
